package chain_user_config

import (
	"chain_bridge_service/internal/pkg/core"
	"chain_bridge_service/internal/repository/mongodb"
	"go.uber.org/zap"
)

var _ Service = (*service)(nil)

type Service interface {
	i()
	Create(ctx core.Context, keyData *CreateChainData) error
	GetConfigByUserId(ctx core.Context, userId string, pageIndex uint, pageSize uint) (count int64, configList []ChainUserConfigData, err error)
	Delete(ctx core.Context, keyData *DeleteChainData) error
	Update(ctx core.Context, keyData *UpdateChainData) error
	UpdateAddress(ctx core.Context, keyData *UpdateChainData) error
}

type service struct {
	db mongodb.Repo
}

func New(logger *zap.Logger, db mongodb.Repo) Service {
	return &service{
		db: db,
	}
}

func (s *service) i() {}
